<?php
session_start();
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/database.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/functions.php');
require($_SERVER['DOCUMENT_ROOT'].'/resources/lib/class.admin.php');
$admin = new admin();
$admin->canView($_SERVER['PHP_SELF']);
ob_start("sanitize_output"); 
?>
<div class="oneem" style="height:90%;">
<div class="qt-tab-wrapper" style="height:90%;">
<ul class="qt">
<li><a href="#t1-pages" id="tt1" class="qta">Pages</a></li>
<li><a href="#t2-pages" id="tt2" class="qta">Edit</a></li>
</ul>
<div id="t1-pages" class="qt-content-container" style="display:block;">
<div style="width:45%;float:left;" id="add-page-container"></div>
<div style="width:50%;float:right;" id="current-pages-container"></div>

<br />
<div class="clearfix" style="margin-bottom:1em;"></div>
</div>
<div id="t2-pages" class="qt-content-container" style="display:none;">
<h1 class="oneem">Please choose a page to edit</h1>
</div>
</div>

</div>
<script>
$.fn.loader('add_page_form');
$.fn.loader('current_pages_list');

$("#tt1").click();

</script>